<!--<?php
# MetInfo Enterprise Content Management System 
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.
require_once template('head');
echo <<<EOT
-->

<title>{$lang_indexflash}</title>
</head>
<body>
 <div class="div_top">
	              <div class="div_title">{$lang_indexflash}</div>     					
<div class="div_content" align="left"><a href="flashadd.php?lang=$lang" >Flash{$lang_add}</a></div>
<div class="div_content" align="left"><span>{$lang_flashMode}:</span>
<a href="?lang=$lang&flashmode=1" $selected1>{$lang_flashMode3}</a>&nbsp;&nbsp;|&nbsp;
<a href="?lang=$lang&flashmode=2" $selected2>{$lang_flashMode2}</a>
</div>
</div>
<div>
 <table cellpadding="2" cellspacing="1" border="0" width="95%" class="table_list1" >
 			  <form name="del" method="Post" action="flashdelete.php?lang=$lang" onSubmit="return ConfirmDelall();">
			  <input  name="flashmode" type="hidden" value="$flashmode">
<!--
EOT;
if($flashmode==1){
echo <<<EOT
-->
              <tr>
                <td width="8%" class="list1_top" align="center">{$lang_selected}</td>
				<td width="8%" class="list1_top" align="center">{$lang_sort}</td>
                <td width="30%" class="list1_top" align="center">{$lang_setflashName}</td>
                <td width="17%" class="list1_top" align="center" >
				<select name="module" id="module" onchange='javascript:window.location.href=this.options[this.selectedIndex].value'>
				<option value='flash.php?lang=$lang&flashmode=1' >&nbsp;{$lang_setflashBelong}</option>
<!--
EOT;
foreach($mod1 as $key=>$val){
echo <<<EOT
-->	
	<option value='flash.php?lang=$lang&flashmode=1&module=$val[id]'  >&nbsp;$val[name]</option>
<!--
EOT;
foreach($mod2[$val[id]] as $key=>$val2){
echo <<<EOT
-->	
    <option value='flash.php?lang=$lang&flashmode=1&module=$val2[id]' style="color:#000099" >&nbsp;&nbsp;- $val2[name]</option>
<!--
EOT;
foreach($mod3[$val2[id]] as $key=>$val3){
echo <<<EOT
-->	
    <option value='flash.php?lang=$lang&flashmode=1&module=$val3[id]' style="color:#FF0000" >&nbsp;&nbsp;&nbsp;-- $val3[name]</option>		
<!--
EOT;
}}}  
echo <<<EOT
-->	
            </select>
				
				
				</td>
                <td width="25%" class="list1_top" align="center" >{$lang_setflashImgUrl}</td>
				<td width="12%" class="list1_top" align="center" >{$lang_operate}</td>
              </tr>
<!--
EOT;
foreach ($flashrec as $key=>$val){
echo <<<EOT
-->          
              <tr >
              <td class="list1_content_titile" align="center"><input name='id' type='checkbox' onClick="unselectall()" id="id" value='$val[id]' class="xz"></td>      
				<td class="list1_content" align="center">$val[no_order]</td>
			    <td align="left" class="list1_content">$val[img_title]</td>
                <td class="list1_content" align="center"><a href="flash.php?lang=$lang&flashmode=1&module=$val[module]">$val[modulename]</a></td>
                <td  class="list1_content" align="center">$val[img_path]</td>
				<td align="center" class="list1_content" style="color:#0066FF;"></a> <a href="flashedit.php?lang=$lang&id=$val[id]&flashmode=1" >{$lang_editor}</a> | <a href="flashdelete.php?lang=$lang&flashmode=1&id=$val[id]" onClick="return ConfirmDel();" >{$lang_delete}</a></td>
              </tr>
<!--
EOT;
}}else{
echo <<<EOT
-->
			  <tr>
                <td width="8%" class="list1_top" align="center">{$lang_selected}</td>
				<td width="17%" class="list1_top" align="center" >
				<select name="module" id="module" onchange='javascript:window.location.href=this.options[this.selectedIndex].value'>
				<option value='flash.php?lang=$lang&flashmode=1' >&nbsp;{$lang_setflashBelong}</option>
<!--
EOT;
jmali_start();
foreach($mod1 as $key=>$val){
echo <<<EOT
-->	
	<option value='flash.php?lang=$lang&flashmode=2&module=$val[id]'  >&nbsp;$val[name]</option>
<!--
EOT;
foreach($mod2[$val[id]] as $key=>$val2){
echo <<<EOT
-->	
    <option value='flash.php?lang=$lang&flashmode=2&module=$val2[id]' style="color:#000099" >&nbsp;&nbsp;- $val2[name]</option>
<!--
EOT;
foreach($mod3[$val2[id]] as $key=>$val3){
echo <<<EOT
-->	
    <option value='flash.php?lang=$lang&flashmode=2&module=$val3[id]' style="color:#FF0000" >&nbsp;&nbsp;&nbsp;-- $val3[name]</option>		
<!--
EOT;
}}}  
echo <<<EOT
-->	
            </select>				
				</td>
                <td width="25%" class="list1_top" align="center">{$lang_setflashUrl}</td>
                <td width="30%" class="list1_top" align="center" >{$lang_setflashBg}</td>
				<td width="12%" class="list1_top" align="center" >{$lang_operate}</td>
              </tr>
<!--
EOT;
foreach ($flashrec as $key=>$val){
echo <<<EOT
-->          
			  <tr >
              <td class="list1_content_titile" align="center"><input name='id' type='checkbox' onClick="unselectall()" id="id" value='$val[id]' class="xz"></td>
				<td class="list1_content" align="center"><a href="flash.php?lang=$lang&flashmode=2&module=$val[module]">$val[modulename]</a></td>
			    <td align="left" class="list1_content">$val[flash_path]</td>
                <td class="list1_content" align="center">$val[flash_back]</td>
				<td align="center" class="list1_content" style="color:#0066FF;"></a> <a href="flashedit.php?lang=$lang&flashmode=2&id=$val[id]" >{$lang_editor}</a> | <a href="flashdelete.php?lang=$lang&flashmode=2&id=$val[id]" onClick="return ConfirmDel();" >{$lang_delete}</a></td>
              </tr>
			  
<!--
EOT;
}}
echo <<<EOT
-->
		   
   	   <tr> 
            <td class="input_bottom" align="center"><input name="chkAll" class="xz" type="checkbox" id="chkAll" onclick=CheckAll(this.form) value="checkbox"></td>
            <td class="input_bottom" align="center">{$lang_selectall}</td>
			<td class="input_bottom" align="left" colspan="5"><input name="submit" type='submit' value='{$lang_deleteselected}'> 
              <input name="action" type="hidden" id="action" value="del">
			  <input name="allid" type="hidden" id="allid" value=""></form></td>
          </tr>
   	   <tr>
   	     <td height="0" align="center" colspan="7" class="list1_input">$page_list</td>
        </tr>
		<tr>
		  <td class="list1_footer" colspan="10" align="center">$foot</td>
	  </tr>
</table>
</div>
</body>
</html>
<!--
EOT;
# This program is an open source system, commercial use, please consciously to purchase commercial license.
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
?>-->